home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / CryptSums / Makefile.postamble < prev    next >
Encoding:
Makefile  |  1992-05-16  |  558 b   |  13 lines

  1. # To make a secure binary, we first make an unsecure one that we can checksum.
  2.  
  3. unsecure $(PRODUCT).unsecure::
  4.     @$(MAKE) $(NAME).unsecure "PRODUCT = $(NAME).unsecure" \
  5.         "OFILE_DIR = unsecure_obj" \
  6.         "_CFLAGS = $(CFLAGS) -O -g -Wimplicit -DSECURE $(SECURE_CFLAGS)" \
  7.         "OTHER_LIBS = $(SECURE_LIBS)" \
  8.         "LDFLAGS = $(LDFLAGS) $(SECURE_LDFLAGS)"
  9.  
  10. secure $(PRODUCT).secure:: $(NAME).unsecure
  11.     cryptsums $(NAME).unsecure $(CS_PASSWORD) > $(NAME).cryptsums
  12.     segedit $(NAME).unsecure -replace $(CS_SEGMENT) $(CS_SECTION) $(NAME).cryptsums -output $(NAME).secure
  13.